<template>
  <ant-modal
    modalWidth="570"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32" style="width: 60%; left: 20%">
        <a-col :span="24">
          <a-form-model-item label="文号" prop="tz00501">
            <a-input v-model="form.tz00501" placeholder="请输入文号" />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="印发时间" prop="tz00502">
            <a-date-picker
              style="width: 100%"
              v-model="form.tz00502"
              valueFormat="YYYY-MM-DD"
              format="YYYY-MM-DD"
              allow-clear
              @keyup.enter.native="handleQuery"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="制度名称" prop="tz00503">
            <a-input v-model="form.tz00503" placeholder="请输入制度名称" />
          </a-form-model-item>
        </a-col>

        <a-col :span="24">
          <a-form-model-item label="上传文件" prop="fileName">
            <file-upload
              :fileList="fileList"
              @afterUpload="uploadCompleteFile"
              @removeFile="handlerRemoveFile"
            ></file-upload>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizTaizhang005AddForm from "./BizTaizhang005Form";
export default {
  ...BizTaizhang005AddForm,
};
</script>
